﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Flyouts</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.2.0/css/ui-light.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.2.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.2.0/js/ui.js"></script>

    <link href="flyouts.css" rel="stylesheet" />
    <script src="flyouts.js"></script>
</head>
<body>
    <div class="flyouts fragment">
        <header aria-label="Header content" role="banner">
            <button data-win-control="WinJS.UI.BackButton"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Flyouts</span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div class="explanation">
                Flyouts are very customizable and end up being a great user experience because a user can dismiss it my just touching outside the flyout. It's called a "light dismiss".
            </div>
            <div>
                <button id="showFlyout">Flyout &gt;</button>
            </div>

            <!--Flyout-->
            <div id="flyout1" data-win-control="WinJS.UI.Flyout" data-win-options="{placement:'right'}">
                <label for="input">Input</label>
                <input type="text" />
            </div>

        </section>
    </div>
</body>
</html>
